package ejb.facades.forum;

import entities.User;
import entities.forum.Message;
import java.util.List;
import javax.ejb.Local;

/**
 * Trabalho PD - 2014/2015
 * @author a21210380 a21210392
 */
@Local
public interface MessageFacadeLocal {

    void create(Message message);

    void edit(Message message);

    void remove(Message message);

    Message find(Object id);

    List<Message> findAll();
    
    List<Message> findReceivedEmails(User user);
    
    Message findReceivedEmail(User user, int email);

    List<Message> findRange(int[] range);

    int count();

}
